//
//  YWPhotoBrowserCell.h
//  Chinese
//
//  Created by yellow on 2021/3/8.
//  Copyright © 2021 YSLC. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class YWPhotoBrowserCell;
@protocol YWPhotoBrowserCellDelegate <NSObject>

@optional

-(void)photoBrowserCell:(YWPhotoBrowserCell *)photoBrowserCell didTapWithUrl:(NSString *)urlString;


@end
@interface YWPhotoBrowserCell : UICollectionViewCell

//按理来说应该有大图小图之分的、但是假如它没有就只能大图也用小图数据了
@property(nonatomic,copy)NSString *littleUrlString;
@property(nonatomic,copy)NSString *bigUrlString;
-(void)setupImgWithLittleUrlString:(NSString *)littleUrlString bigUrlString:(NSString *)bigUrlString;

@property (weak, nonatomic) id <YWPhotoBrowserCellDelegate>delegate;

//因为imageView是add在scrollView、我要转换imageView相对于window的frame、所以我要暴露scrollView 尽管如此这是readonly
@property(nonatomic,strong,readonly)UIScrollView *scrollView;

@property(nonatomic,strong)UIImageView *imageView;

@end

NS_ASSUME_NONNULL_END
